<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
	<?php $this->load->view('common/top', array('title' => 'SEWIKI - CHAPTERLIST')); ?>
	<body>
		<div id="container">
			<?php $this->load->view('common/header'); ?>
			<div id="content">
				<?php $this->load->view('common/menu'); ?>
				<div id="main">
					<div id="thread_title" class="title">
						讨论主题&nbsp;<a href=<?=site_url('forum/Forum/thread/' . strval($thread['tid']))?>>[返回主题列表]</a>
					</div>
					<div id="thread_content" class="text">
						<table width="100%">
							<tbody>
								<tr>
									<td rowspan="3" style="text-align:center;background:#afa;width:100px;border-radius:8px"><?=$thread['username'] ?></td>
									<td>标题 : <?=$thread['title']?></td>
									<td><?=$thread['create_time']?></td>
								</tr>
								<tr>
									<td colspan="2"><?=$thread['content']?></td>
								</tr>
								<tr>
									<td colspan="2">
										<?php foreach($thread['operators'] as $operator):?>
											<a href="<?=$operator['op_url']?>">[<?=$operator['op_name']?>]</a>
										<?php endforeach; ?>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div id="poster_list" class="text">
						<table width="100%">
							<?php foreach($posters as $poster): ?>
								<?php $this->load->view('forum/posterItem', $poster) ?>
							<?php endforeach; ?>
						</table>
					</div>
					<div id="poster_form_title" class="subtitle">
						回应这一主题
					</div>
					<div id="poster_form" class="text_form">
						<?php $this->load->view('forum/createPosterForm'); ?>
					</div>
				</div>
			</div>
			<?php $this->load->view('common/footer'); ?>
		</div>
	</body>
</html>